package com.book.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.entity.BookImage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface BookImageDao extends BaseMapper<BookImage> {

    @Select("select img from book_image where book_id=#{bookId} and del_flag=0")
    String[] getAllImageById(int bookId);
}